Designing For Safety-Critical Medical Applications And Systems